<template>
  <div style="width: 100%; background-color: #084c9d">
    <div class="main-body">
      <div style="font-weight: bold">友情链接</div>
      <div class="link-list">
        <a
          class="items"
          v-for="(item, index) in link_list"
          :key="index"
          :href="item.url"
          >{{ item.title }}</a
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "FooterBottom",
  data: function () {
    return {
      link_list: [
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN1111111111111111",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
        {
          title: "百度",
          url: "http://www.baidu.com/",
        },
        {
          title: "CSDN",
          url: "https://www.csdn.net/",
        },
      ],
    };
  },
};
</script>

<style>
.main-body {
  width: 80%;
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  color: white;
}
.link-list {
  display: flex;
  flex-flow: row wrap;
  margin-top: 5px;
}
.link-list a {
  text-decoration: none;
  outline: none;
  color: white;
}
.items {
    font-size: 10px;
  margin-top: 10px;
  margin-right: 10px;
}
</style>